package string;

public class StringStringAndBuilderDemo {
    public static void main(String[] args) {
        StringBuilder s = new StringBuilder("a");
        for (int i= 0;i<1000000;i++){
            s= s.append(i);
            System.out.println("执行完毕");
        }
        /*
        String s = "a";
        for (int i= 0;i<1000000;i++){
            s= s+i;
        }
        System.out.println("执行完毕");

         */



    }
}
